package pri.zxx.excelgenerate.dataentity.tabledata;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.experimental.Accessors;

import java.lang.reflect.Field;

@Data
@Accessors(chain = true)
public class CellData {
    private String titleName;
    private int order;
    private Field field;
    private Integer position;

    public CellData(String titleName, int order, Field field) {
        this.titleName = titleName;
        this.order = order;
        this.field = field;
        this.position = 1;
    }

    public CellData(String titleName, int order, Field field, int position) {
        this.titleName = titleName;
        this.order = order;
        this.field = field;
        this.position = position;
    }
}
